
package ch.ethz.ssh2;

public class CldForwardData implements ForwardData
{
	public final String forwardHost;
	public final int forwardPort;
	public final long forwardId;
	
	public CldForwardData(String forwardHost, int forwardPort, long forwardId)
	{
		if (forwardHost == null)
			throw new IllegalArgumentException("forwardHost must be non-null");

		if (forwardPort < 0)
			throw new IllegalArgumentException("forwardPort must be non-negative");

		this.forwardHost = forwardHost;
		this.forwardPort = forwardPort;
		this.forwardId = forwardId;
	}
}
